package com.woniuxy.reservation.client.reservationclient;

import com.woniuxy.reservation.client.param.InsertReservationParam;
import com.woniuxy.reservation.client.param.UpdateReservationStateParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import result.Result;

@FeignClient(contextId = "reservationManageClient",name = "reservation")
public interface ReservationManageClient {
    @PostMapping("/insertReservation")
    public Result insertReservation(@RequestBody InsertReservationParam param);

    @PutMapping("/updateReservationState")
    public Result updateReservationState(@RequestBody UpdateReservationStateParam param);

    @DeleteMapping("/deleteReservation")
    public Result deleteReservation(@RequestParam("storeId")Integer storeId,@RequestParam("reservationId")Integer reservationId);
}
